<template>
  <!-- 标题栏 -->
  <header class="bar bar-nav">
      <span class="icon icon-left pull-left" @click="back"></span>
      <h1 class="title">{{title}}</h1>
  </header>
</template>

<script>
export default {
  props: ['title'],
  methods: {
    back () {
      history.go(-1)
    }
  }
}
</script>
